package cloud.xlh.digital_power_pay;

import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/8/12 11:29
 * @ Description:
 */
@ComponentScan(value = "cloud.xlh.*",excludeFilters = {
        @ComponentScan.Filter(type = FilterType.REGEX , pattern = "cloud\\.xlh\\.digital_power_pay\\.config\\.rocketmq\\..*"
        ),
@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE , classes = {RocketMQAutoConfiguration.class , RedisAutoConfiguration.class})})
@EnableFeignClients
@SpringBootApplication
public class DigitalPowerPayApplication {
    public static void main(String[] args) {
        SpringApplication.run(DigitalPowerPayApplication.class , args);
    }
}
